//C12:12.1:hiding.c -- variant in code block.
#include <stdio.h>

int main(void)
{
    int x = 30;
    printf("x in outer block: %d\n", x);
    {
        int x = 77;  // override the first x. 
        printf("x in inner block: %d\n", x);
    }

    printf("x in outer block: %d\n", x);
    while (x++ < 3)
    {
        int x = 100;  // override the first x
        x++;
        printf("x in while loop: %d\n", x);
    }
    printf("x in outer block: %d\n", x);
}

